package com.bosssoft.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li kexi
 * Created on 2021/8/23.15:51
 */
/**
    * 支出预算明细表
    */
@ApiModel(value="com-bosssoft-entity-po-FibExpenseBudgetDetailPO")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "fib_expense_budget_detail")
public class FibExpenseBudgetDetailPO implements Serializable {
    /**
     * id
     */
    @TableId(value = "bgt_detail_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long bgtDetailId;

    /**
     * 支出预算表外键
     */
    @TableField(value = "eb_id")
    @ApiModelProperty(value="支出预算表外键")
    private Long ebId;

    /**
     * 预算单位编码
     */
    @TableField(value = "dept_id")
    @ApiModelProperty(value="预算单位编码")
    private Long deptId;

    /**
     * 预算单位名称
     */
    @TableField(value = "dept_name")
    @ApiModelProperty(value="预算单位名称")
    private String deptName;

    /**
     * 经济科目代码
     */
    @TableField(value = "eco_code")
    @ApiModelProperty(value="经济科目代码")
    private Integer ecoCode;

    /**
     * 项目名称
     */
    @TableField(value = "project_name")
    @ApiModelProperty(value="项目名称")
    private String projectName;

    /**
     * 公共预算拨款
     */
    @TableField(value = "public_budget")
    @ApiModelProperty(value="公共预算拨款")
    private BigDecimal publicBudget;

    /**
     * 专项资金
     */
    @TableField(value = "special_fund")
    @ApiModelProperty(value="专项资金")
    private BigDecimal specialFund;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 最近更新
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="最近更新")
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value="更新人")
    private String updateBy;

    /**
     * 激活状态
     */
    @TableLogic
    @TableField(value = "deleted")
    @ApiModelProperty(value="激活状态")
    private Byte deleted;

    /**
     * 版本号
     */
    @Version
    @TableField(value = "version")
    @ApiModelProperty(value="版本号")
    private Integer version;

    private static final long serialVersionUID = 1L;
}